.class Lrexsee/core/browser/RexseeUrl$6;
.super Lrexsee/core/browser/clazz/UrlListener;
.source "RexseeUrl.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/browser/RexseeUrl;-><init>(Lrexsee/core/browser/Browser;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/browser/RexseeUrl;


# direct methods
.method constructor <init>(Lrexsee/core/browser/RexseeUrl;Ljava/lang/String;)V
    .locals 0
    .param p2, "$anonymous0"    # Ljava/lang/String;

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/browser/RexseeUrl$6;->this$0:Lrexsee/core/browser/RexseeUrl;

    .line 208
    invoke-direct {p0, p2}, Lrexsee/core/browser/clazz/UrlListener;-><init>(Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public run(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)V
    .locals 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "browser"    # Lrexsee/core/browser/Browser;
    .param p3, "url"    # Ljava/lang/String;

    .prologue
    .line 211
    iget-object v3, p2, Lrexsee/core/browser/Browser;->domainWhiteList:Lrexsee/core/browser/clazz/DomainWhiteList;

    invoke-virtual {v3, p3}, Lrexsee/core/browser/clazz/DomainWhiteList;->isValidUrl(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 212
    iget-object v3, p0, Lrexsee/core/browser/RexseeUrl$6;->this$0:Lrexsee/core/browser/RexseeUrl;

    invoke-virtual {v3, p3}, Lrexsee/core/browser/RexseeUrl;->getFilterByUrl(Ljava/lang/String;)Lrexsee/core/browser/clazz/FilterListener;

    move-result-object v1

    .line 213
    .local v1, "filterListener":Lrexsee/core/browser/clazz/FilterListener;
    if-eqz v1, :cond_0

    .line 214
    invoke-virtual {v1, p1, p2, p3}, Lrexsee/core/browser/clazz/FilterListener;->run(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)V

    .line 232
    .end local v1    # "filterListener":Lrexsee/core/browser/clazz/FilterListener;
    :goto_0
    return-void

    .line 217
    .restart local v1    # "filterListener":Lrexsee/core/browser/clazz/FilterListener;
    :cond_0
    iget-object v3, p0, Lrexsee/core/browser/RexseeUrl$6;->this$0:Lrexsee/core/browser/RexseeUrl;

    # invokes: Lrexsee/core/browser/RexseeUrl;->getExtensionByUrl(Ljava/lang/String;)Lrexsee/core/browser/clazz/ExtensionListener;
    invoke-static {v3, p3}, Lrexsee/core/browser/RexseeUrl;->access$2(Lrexsee/core/browser/RexseeUrl;Ljava/lang/String;)Lrexsee/core/browser/clazz/ExtensionListener;

    move-result-object v0

    .line 218
    .local v0, "extensionListener":Lrexsee/core/browser/clazz/ExtensionListener;
    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lrexsee/core/browser/clazz/ExtensionListener;->shouldProcessOnline()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 219
    invoke-virtual {v0, p1, p2, p3}, Lrexsee/core/browser/clazz/ExtensionListener;->run(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)V

    goto :goto_0

    .line 222
    :cond_1
    iget-object v3, p2, Lrexsee/core/browser/Browser;->pageBeforeStartListeners:Lrexsee/core/browser/clazz/PageBeforeStartListeners;

    invoke-virtual {v3, p2, p3}, Lrexsee/core/browser/clazz/PageBeforeStartListeners;->run(Lrexsee/core/browser/Browser;Ljava/lang/String;)V

    .line 223
    invoke-virtual {p2, p3}, Lrexsee/core/browser/Browser;->loadUrl(Ljava/lang/String;)V

    goto :goto_0

    .line 225
    .end local v0    # "extensionListener":Lrexsee/core/browser/clazz/ExtensionListener;
    .end local v1    # "filterListener":Lrexsee/core/browser/clazz/FilterListener;
    :cond_2
    new-instance v2, Landroid/content/Intent;

    invoke-direct {v2}, Landroid/content/Intent;-><init>()V

    .line 226
    .local v2, "i":Landroid/content/Intent;
    const/high16 v3, 0x40000

    invoke-virtual {v2, v3}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 227
    const/high16 v3, 0x10000000

    invoke-virtual {v2, v3}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 228
    const-string v3, "android.intent.action.VIEW"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 229
    invoke-static {p3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 230
    invoke-virtual {p1, v2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method

.method public shouldAddToHistory(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)Z
    .locals 1
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "browser"    # Lrexsee/core/browser/Browser;
    .param p3, "url"    # Ljava/lang/String;

    .prologue
    .line 235
    iget-object v0, p2, Lrexsee/core/browser/Browser;->domainWhiteList:Lrexsee/core/browser/clazz/DomainWhiteList;

    invoke-virtual {v0, p3}, Lrexsee/core/browser/clazz/DomainWhiteList;->isValidUrl(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 236
    const/4 v0, 0x1

    .line 238
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
